/*
 * Change Logs:
 * Date           Author       Notes
 * 2025-05-06     jason       the first version
 */
#ifndef __PCIE_CANFD_H__
#define __PCIE_CANFD_H__

struct canfd_msg_t
{
    unsigned char fmt;          // frame format, 0: Std; 1: Ext
    unsigned char rtr;          // frame type, 0: data frames; 1: long-range frames
    unsigned long id;           // can id, CAN: 0x00-0x7FF; CANFD: 0x00-0x1FFFFFFF
    unsigned char dlc;          // data length, CAN: 0~8; CANFD: 0~64
    unsigned char flg;          // canfd flag, CAN: 0; CANFD: 1
    unsigned char data[64];     // payload (0-64 bytes)
};

#endif // __PCIE_CANFD_H__
